import { commonRequest } from '@/api/commonHttp';

// 获取计量单位组列表
export const getUnitGroupListService = (data, loadingFn) => commonRequest({
  url: '/sysback/unitGroup/pageList',
  type: 'post',
  data,
  loadingFn
});

// 新增/修改计量单位组
export const updateUnitGroupService = (data, loadingFn) => commonRequest({
  url: '/sysback/unitGroup/save',
  type: 'post',
  data,
  loadingFn
});

// 计量单位组详情
export const getUnitGroupDetailService = (data, loadingFn) => commonRequest({
  url: '/sysback/unitGroup/getByUuid',
  type: 'post',
  data,
  loadingFn
});

// 导出计量单位组
export const exportUnitGroupService = (data, loadingFn) => commonRequest({
  url: '/sysback/unitGroup/excel',
  type: 'post',
  data,
  loadingFn,
  isExport: true
});
